package com.example.night.service.ApiService.yuantuitui;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

@Data
public class LoginResponseYTT {
    private int code;
    private String message;
    private DataWrapper data;

    @Data
    public static class DataWrapper {
        private boolean success;
        private Result result;
    }

    @Data
    public static class Result {
        private Token token;

        @JsonProperty("vip_expire")
        private boolean vipExpire;
    }

    @Data
    public static class Token {
        @JsonProperty("access_token")
        private String accessToken;

        @JsonProperty("expires_in")
        private int expiresIn;
    }
}
